<%--
  Created by IntelliJ IDEA.
  User: qiliping
  Date: 15/12/16
  Time: 下午5:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<html>
<head>
    <title>编辑后台角色</title>
</head>
<body>
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            后台管理
            <small>修改登录密码</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/main">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>

            <li>
                <a href="#">
                    修改登录密码
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<div class="main">

    <div class="row">
        <div class="col-md-12">
            <form:form modelAttribute="PasswordModel" method="post" class="form-horizontal">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label col-md-3">原密码：</label>
                        <div class="col-md-2">
                            <form:password path="oldPwd" cssClass="form-control" maxlength="16" placeholder=""></form:password>
                        </div>
                        <form:errors path="oldPwd" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">新密码：</label>
                        <div class="col-md-2">
                            <form:password path="newPwd" cssClass="form-control" maxlength="16" placeholder=""></form:password>
                        </div>
                        <form:errors path="newPwd" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">确认新密码：</label>
                        <div class="col-md-2">
                            <form:password path="rePwd" cssClass="form-control" maxlength="16" placeholder=""></form:password>
                        </div>
                        <form:errors path="rePwd" cssClass="field-validation-error" element="div"></form:errors>
                    </div>
                    <div class="form-group">
                        <div class="col-md-9 col-md-offset-3 ">
                            <span style="color:red">${error}</span>
                            <input type="submit" value="修改密码" class="btn green"/>

                        </div>
                    </div>
                </div>

            </form:form>
        </div>
    </div>



</div>
</body>
</html>
